int lectura;
int brillo;

void setup() {
	pinMode(11, OUTPUT);
}

void loop() {
      lectura = analogRead(0); 
      brillo = map(lectura, 0, 1023, 0, 255);
      analogWrite(11, brillo); 
      delay(100);
}




